#ifndef __QUENE_H__
#define __QUENE_H__

#include "cc.h"

#define PARAM_ID_LENGHT_MAX         40
#define PARAM_VALUE_LENGHT_MAX      200

typedef struct{
    int len;
    char cmd_type;
    char param_id[PARAM_ID_LENGHT_MAX];
    char param_value[PARAM_VALUE_LENGHT_MAX];
}cmd;

typedef struct{   
   int front;
   int rear;
   int count;
   int size;
   cmd* base;
}cmdquene;

void initquene(cmdquene** s,int size);
void enquene(cmdquene* s,cmd* e);
void dequene(cmdquene* s,cmd* e);
int getquenelength(cmdquene* s);
void destoryquene(cmdquene* s);

#endif // !__QUENE_H__
